AI035
Programming Ruby: The Pragmatic Programmers' Guide (Second Edition)
Ch. 23-24: Duck Typing and Object Invocation
Learning Objectives
- Define the core philosophy of duck typing in dynamic languages
- Understand the process of runtime object invocation and method dispatching
- Implement polymorphic interfaces without formal inheritance constraints
- Analyze the trade-offs between static typing and dynamic 'duck' interfaces